<?php
!defined ('P_W') && exit('Forbidden');
/**
 * 
 * 二手房列表之出租DB类
 * @author hu.liaoh
 *
 */
House::loadDB('house_second','',false);
class PW_House_SecondHireDB extends PW_House_SecondDB{

	var $_primaryKey  = 'houseid';
	var $_saleInfo = 'pw_house_hireinfo';
	var $_overdueTable = 'pw_house_hireoverdue';
	var $_msyqlSort         = "DESC";
	var $_sortTypes         = array();
	var $_sortFields        = array();

	function PW_House_SecondHireDB(){
		parent::PW_House_SecondDB();
		$this->_allowIndexFields = array('areatype','platetype','pricetype','housetype','roomtype','hiretype');//允许索引的字段
		$this->_sortFieldTables = array('price'=>'pw_house_hireprice_index', 'posttime'=>'pw_house_hireposttime_index', 'modifytime'=>'pw_house_hiremodifytime_index'); //允许排序的字段及与之对应的索引表
		$this->_expandFields = array('equal'=>array('ischarge','isbroker','uid','username','state', 'istop', 'isurgent'),'like'=>array()); //后台扩展的字段
	}
}